package com.kgc.service.impl;

import com.kgc.dao.CompletionDao;
import com.kgc.entity.Completion;
import com.kgc.service.CompletionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
/**
 *(bankblankfillingquestion)表服务接口实现类
 *
 * @author unicorn
 * @date 2020/05/21
 */
@Service("completionService")
public class CompletionServiceImpl implements CompletionService {

    @Resource
    private CompletionDao completionDao;

    @Override
    public Completion queryById(Integer id) {
        return this.completionDao.queryById(id);
    }

    @Override
    public List<Completion> queryCompletion() {
        return this.completionDao.queryCompletion();
    }

    @Override
    public List<Completion> queryAll(Completion completion) {
        return this.queryAll(completion);
    }

    @Override
    public Integer insert(Completion completion) {
        return this.completionDao.insert(completion);
    }

    @Override
    public Integer update(Completion completion) {
        return this.completionDao.update(completion);
    }

    @Override
    public Integer deleteById(Integer id) {
        return this.completionDao.deleteById(id);
    }
}
